SOURCE_FILE := ofp1234.c app_fp256_360.c usb_device.c upgrade.c
HEADER_FILE := ofp1234.h common.h usb_device.h app_fp256_360.h upgrade.h
CFLAGS += `pkg-config --cflags glib-2.0 gio-unix-2.0 libbiometric libusb-1.0`
LDFLAGS += `pkg-config --libs glib-2.0 gio-unix-2.0 libbiometric libusb-1.0`
all: $(SOURCE_FILE)
	gcc -g -Wall --shared -fPIC $(CFLAGS) $^ -o ofp2388.so $(LDFLAGS)
clean:
	rm -rf *.o *.a *.so
